import React from 'react'
import {AtTabsPane } from 'taro-ui'
import {DepartmentListPart} from './DepartmentListPart' 

class DepartmentList extends React.Component{
  
    render(){    
      return(
        <AtTabsPane tabDirection='vertical' index={this.props.index}>
          {this.props.department.map(
            (item) =>{
              return <DepartmentListPart department={item}/>
            })}
        </AtTabsPane>
      )
    }
}

export {DepartmentList}